<?php
/**
 * 后台用户验类
 * @author yupoxiong<i@yufuping.com>
 */

namespace app\admin\validate;

class OtaGroupValidate extends Validate
{
    protected $rule = [
        'group_name|分组名称'           => 'require|unique:ota_group',
        'ota_account|所属用户'          => 'require',
    ];

    protected $scene = [
        'add'    => ['group_name', 'ota_account'],
        'edit'   => ['group_name', 'ota_account'],
        'config' => ['group_name'],
    ];
}
